const express = require('express')

const app = express()

const qs = require('./2.1.自定义中间件模块')

app.use(qs)

app.get('/login',(req,res) => {
    res.send('菊花残,满地伤,花落人断肠!')
})

app.post('/',(req,res) => {
    console.log(req.body);
    res.send('菊花残,满地伤,花落人断肠!')
})

app.listen(80,() => {
    console.log('启动');
})